#include "Entity.h"

Entity::Entity()
{
	entitySheet = NULL;
	
	entType = null;
	
	x = 0.0f;
	y = 0.0f;
	
	w = 0;
	h = 0;
	
	xVel = 0.0f;
	yVel = 0.0f;	
}

Entity::~Entity()
{
	cleanup();
}

void Entity::render(SDL_Surface *destination)
{
	Surface::apply_surface(entitySheet,destination,(int)x, (int)y);
}

void Entity::cleanup()
{
	SDL_FreeSurface(entitySheet);
	entitySheet = NULL;
	
	entType = null;
	
	x = 0.0f;
	y = 0.0f;
	
	w = 0;
	h = 0;
	
	xVel = 0.0f;
	yVel = 0.0f;
}
